home *** CD-ROM | disk | FTP | other *** search
/ Aminet 2 / Aminet AMIGA CDROM (1994)(Walnut Creek)[Feb 1994][W.O. 44790-1].iso / Aminet / dev / cross / sasmv14.dms / sasmv14.adf / examples / exp.s < prev    next >
Text File  |  1993-05-22  |  897b  |  44 lines

  1.  
  2. ; Some little Expression test lines...
  3. ; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  4.     heap    O=1k
  5.  
  6. label6=        6
  7. nine=        9
  8. mine=        label6
  9. zero=        0*0
  10.  
  11. aaaa=    3    ;some crashcode..
  12. aaa=    aaaa-1
  13. aa=    aaa-3
  14.  
  15.     exp=(aaaa+aaa+aa)*aa
  16.     exp=2^((((mine-1)+3)*2+9/(3-2)||2)/nine)    ;whats the result?
  17.     exp=(2+3+4+label6&&3)+23||1
  18.     exp=1+1)
  19.     exp=-1
  20.     exp=-label6+2
  21.     exp=-(label6+2)
  22.     exp=1<<24
  23.     exp=-1<<24
  24.     exp=16384>>3
  25.     exp=--3        ;will do (=3)
  26.     exp=-(-3)    ;will do
  27.     exp=1<<(3+1)||1
  28.     exp=5*3+1
  29.     exp=1+5*3
  30.     exp=(1+5)*3
  31.     exp=2^5+1
  32.     exp=2^200000                    ;will work long time :(
  33.     exp=13/(zero+1||2)
  34.     exp=25*25/25
  35.     exp=25+zero*25+zero/25+zero
  36.     exp=5+3*2+9/3-2
  37.     exp=(5+3)*2+9/(3-2)
  38.     exp=(5+3)*2+9/(3-2)||2
  39.     exp=((5+3)*2+9/(3-2)||2)/9
  40.  
  41. ; if you're cool, you'll verify the next line...
  42.  
  43.     exp=(2+3+4+label6&&3)+23||1+1+-label6+2+-(label6+2)+1<<24+-1<<24+16384>>3+--3-(-3)+1<<(3+1)||1+5*3+1+1+5*3+(1+5)*3+2^5+113/(zero+1||2)+((5+3)*2+9/(3-2)||2)/9
  44.